'use strict';

// 是否为DOM元素 
export const isDOM = ( typeof HTMLElement === 'object' ) ? 
    function(obj){
        return obj instanceof HTMLElement; 
    }: 
    function(obj){
        return obj && typeof obj === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';
    };
